# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=libhomfly
pkgver=1.02r6
pkgrel=2
pkgdesc="Library to compute the homfly polynomial of a link"
arch=(loong64 x86_64)
url="https://github.com/miguelmarco/libhomfly"
license=(custom)
depends=(gc)
source=($pkgname-$pkgver.tar.gz::"https://github.com/miguelmarco/libhomfly/archive/$pkgver.tar.gz")
sha256sums=('cf5d5031c905318127c83fdffc891deb097c77ee48cdd0131f839ea6ecb64a84')

build() {
  cd $pkgname-$pkgver
  autoreconf -vi
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}

